//zed

var y = 0

print("*** start\n")

print("---  body: single statement on new line")
if (y == 0)
    print("OK - then is correct")
elif (y > 4)
    print("elif is wrong")
else
    print("else is wrong")
end

print("---  body: single statement on new line")
if (y == 4 )
    print("FAIL - then is wrong")
elif (y == 0)
    print("OK - elif is correct")
else
    print("FAIL - else is wrong")
end

print("---  body: single statement on new line - Multiple elif's")
if (y == 4 )
    print("FAIL - then is wrong")
elif (y == 5)
    print("FAIL - elif is wrong")
elif (y == 0)
    print("OK - elif is correct")
else
    print("FAIL - else is wrong")
end

print("---  body: single statement on new line - Duplicate elif's - only 1st should run")
if (y == 4 )
    print("FAIL - then is wrong")
elif (y == 0)
    print("OK - elif is correct")
elif (y == 0)
    print("FAIL - elif is wrong - duplicate")
else
  print("FAIL - else is wrong")
end

print("---  body: multiple statements on new line - Duplicate elif's - only 1st should run")
if (y == 4 )
    print("FAIL - then is wrong")
elif (y == 0)
    print("OK - elif is correct")
    print("OK - elif is correct 2nd line")
elif (y == 0)
    print("FAIL - elif is wrong - duplicate")
else
  print("FAIL - else is wrong")
end


print("\n*** end ");
